package com.unisyou.entity;

import java.io.Serializable;

public class StudentEntity implements Serializable {
    private int code;
    private String name;
    private int age;
    private int idcard;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getIdcard() {
        return idcard;
    }

    public void setIdcard(int idcard) {
        this.idcard = idcard;
    }

    @Override
    public String toString() {
        return "StudentEntity{" +
                "code=" + code +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", idcard=" + idcard +
                '}';
    }

    public void im(){
        System.out.println("I'm myself!");
    }
}
